package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商业区管理对象 config_house_block
 * 
 * @author YuKunXu
 * @date 2024-02-27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConfigHouseBlock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商业区编号 */
    private Long id;

    /** 商业区名 */
    @Excel(name = "商业区名")
    private String name;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 创建用户 */
    @Excel(name = "创建用户")
    private String creatorUserId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatorTime;

    /** 最后一次修改用户 */
    @Excel(name = "最后一次修改用户")
    private String lastModifyUserId;

    /** 最后一次修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后一次修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastModifyTime;

    /** 删除用户 */
    private String deleteUserId;

    /** 删除时间 */
    private Date deleteTime;

    /** 删除（0正常，1删除） */
    @TableLogic(delval = "1")
    private Long del;

    /** 一对多 */
    private List<ConfigBuilding> configBuildings;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setCreatorUserId(String creatorUserId) 
    {
        this.creatorUserId = creatorUserId;
    }

    public String getCreatorUserId() 
    {
        return creatorUserId;
    }
    public void setCreatorTime(Date creatorTime) 
    {
        this.creatorTime = creatorTime;
    }

    public Date getCreatorTime() 
    {
        return creatorTime;
    }
    public void setLastModifyUserId(String lastModifyUserId) 
    {
        this.lastModifyUserId = lastModifyUserId;
    }

    public String getLastModifyUserId() 
    {
        return lastModifyUserId;
    }
    public void setLastModifyTime(Date lastModifyTime) 
    {
        this.lastModifyTime = lastModifyTime;
    }

    public Date getLastModifyTime() 
    {
        return lastModifyTime;
    }
    public void setDeleteUserId(String deleteUserId) 
    {
        this.deleteUserId = deleteUserId;
    }

    public String getDeleteUserId() 
    {
        return deleteUserId;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("address", getAddress())
            .append("remark", getRemark())
            .append("creatorUserId", getCreatorUserId())
            .append("creatorTime", getCreatorTime())
            .append("lastModifyUserId", getLastModifyUserId())
            .append("lastModifyTime", getLastModifyTime())
            .append("deleteUserId", getDeleteUserId())
            .append("deleteTime", getDeleteTime())
            .append("del", getDel())
            .toString();
    }
}
